<!--
 * @Author: wangming
 * @Date: 2021-04-01 14:41:57
 * @LastEditors: wangming
 * @LastEditTime: 2022-04-28 14:44:39
 * @Description: file content
-->
<template>
  <div>
    <el-form-item label="禁用" class="tr">
      <el-switch v-model="value.__config.disabled"> </el-switch>
    </el-form-item>
    <el-form-item label="只读" class="tr">
      <el-switch v-model="value.__config.viewInfo"> </el-switch>
    </el-form-item>
  </div>
</template>

<script>
import basicmixins from "./basicmixins";
export default {
  mixins: [basicmixins],
  data() {
    return {};
  },
  computed: {
    tagName() {
      return this.value.tagName;
    },
    show() {
      if (["hlLayout", "hlLayoutTab", "hlLayoutItem"].includes(this.tagName)) {
        return false;
      } else {
        return true;
      }
    },
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
::v-deep .el-form-item--mini.el-form-item,
.el-form-item--small.el-form-item {
  margin-bottom: 8px;
}
</style>
